import { Image, StyleSheet, View } from 'react-native';

export default function App() {
  return (
    <View>
      <Image
        // 网络图片
        source={{ uri: 'https://yanxuan-item.nosdn.127.net/31a81e6c7e4c173d1cf19d5abeb97550.png' }}
        style={styles.image}
      />
      {/* 本地图片 */}
      <Image source={require('./assets/open_eyes.png')} />

      {/* 显示动态图,需要配置(android\app\build.gradle) */}
      <Image source={require('./assets/cat.gif')} />

    </View>
  );

}
const styles = StyleSheet.create({
  image: {
    width: 100,
    height: 100,
  },
});




